<div class="my-account">
    <div class="box-head">
        <h2>Recent Orders</h2>       
    </div>
    <div class="myorder">
        <div class="box-account box-recent">
            <?php echo $userAccountPager->renderNavigationTop();?>
            <table class="data-table" id="my-orders-table">
                <col width="1">
                <col width="1">
                <col>
                <col width="1">
                <col width="1">
                <col width="1">
                <thead>
                    <tr class="first last">
                        <th>Order #</th>
                        <th>Date</th>
                        <th>Ship To</th>
                        <th>Order Total(BDT)</th>
                        <th>Status</th>
                        <th>&nbsp;</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($userAccountPager as $key=>$userAccount):?>
                    <tr class="first <?php ($key%2==1)?'odd':'even'?>">
                        <td><?php echo ($userAccount->id+1000000)?></td>
                        <td><span class="nobr"><?php echo date('d/m/Y',strtotime($userAccount->created_at))?></span></td>
                        <td><?php echo $userAccount->DmUser->Profile->first_name.' '.$userAccount->DmUser->Profile->last_name?></td>
                        <td><span class="price"><?php echo $userAccount->total_cost?></span></td>
                        <td><em><?php echo $userAccount->status?></em></td>
                        <td class="a-center last">
                            <span class="nobr">
                                <?php echo _link('main/viewOrder')->param('order_id',$userAccount->id)->text('View Order')?>

                            </span>
                        </td>
                    </tr>
                    <?php endforeach;?>
                </tbody>
            </table>
            <?php echo $userAccountPager->renderNavigationBottom();?>
        </div>

    </div>
</div>
